package com.osdp.uc.api.impl;

import com.osdp.uc.api.IUserApi;
import com.osdp.uc.dto.UserDTO;
import com.osdp.uc.feign.UcFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserApiFeignImpl implements IUserApi {

    @Autowired
    private UcFeignService ucFeignService;

    @Override
    public UserDTO queryUserByUserName(String userName) {
        return ucFeignService.queryUserByUserName(userName);
    }

    @Override
    public UserDTO queryUserById(String userId) {
        return ucFeignService.queryUserById(userId);
    }

    @Override
    public boolean updatePassWord(String id, String passWord) {
        return ucFeignService.updatePassWord(id,passWord);
    }
}
